package net.uhuijia.shop.usershop.service;

import net.uhuijia.appbase.service.BaseService;
import net.uhuijia.shop.info.persistence.model.Shop;
import net.uhuijia.user.usermall.persistence.model.UserMall;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import net.uhuijia.appbase.service.CrudService;
import net.uhuijia.shop.usershop.persistence.dao.UserShopDao;
import net.uhuijia.shop.usershop.persistence.model.UserShop;
import net.uhuijia.shop.usershop.persistence.model.UserShopExample;

import java.util.List;


@Service
@Transactional
public interface UserShopService
     extends BaseService<UserShop,UserShopExample> {

    /**
     * 根据userId  查询用户是否申请了店铺信息
     * @param userId
     * @return
     */
    List<UserShop> findUserShopByUserId(String userId);
    /**
     * @Author xzj
     * @Description //用户绑定店铺
     * @Date  2018/10/7
     * @Param
     * @return
     **/
    String addUserShop(UserMall userMall , Shop shop);


}